package com.dfbz.demo01;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo09_异常的抛出_编译时异常 {
    public static void main(String[] args) {

        method();

    }


    public static void method() {

        Boolean flag = true;
        if (flag) {
            try {
                throw new Exception("出现异常啦！");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        System.out.println("11111");
    }
}
